package com.lc.sell.mapper;

import com.lc.sell.entity.Addresses;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 龙晨
 * @since 2022-02-01
 */
@Mapper
public interface AddressesMapper extends BaseMapper<Addresses> {

    // 关联表数据添加
    void insertAU(@Param(value = "userid") String userid,@Param(value = "aid") Integer aid);

    //根据用户id查询地址信息
    List<Addresses> selectAddressList(String userId);

}
